<%@ Control Language="c#" AutoEventWireup="false" Codebehind="EditStaff.ascx.cs" Inherits="TimeSheet.Protected.View.Model.EditStaff" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="ew" Namespace="eWorld.UI" Assembly="eWorld.UI, Version=1.9.0.0, Culture=neutral, PublicKeyToken=24d65337282035f2" %>


<ew:collapsablepanel id="cpEntity" collapsedtitlestyle-cssclass="CollapseablePanelTitleCollapsed" titlestyle-cssclass="CollapseablePanelTitle" allowsliding="True" allowtitlerowexpandcollapse="True" showlinkorimage="True" collapseimageurl="../../../images/collapse.gif" expandimageurl="../../../images/expand.gif" cssclass="CollapseablePanel" collapsetext="Close" expandtext="Edit/Add Staff" titletext="Add/Edit Staff" runat="server">&nbsp; 
<h1>
<asp:label id="lblAddEditTitle" runat="server">Add New Staff Member</asp:label></h1>
<table id="Table1" width="100%">
  <tr>
    <td valign="top" width="30%">First&nbsp;Name: 
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="FirstName">*</asp:RequiredFieldValidator></td>
    <td valign="top">
<asp:textbox id="FirstName" runat="server" cssclass="textbox" MaxLength="50"></asp:textbox></td></tr>
  <tr>
    <td valign="top" width="30%">Last&nbsp;Name: 
<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="Last Name is required" ControlToValidate="LastName">*</asp:RequiredFieldValidator></td>
    <td valign="top">
<asp:textbox id="LastName" runat="server" cssclass="textbox" MaxLength="50"></asp:textbox></td></tr>
  <tr>
    <td valign="top" width="30%">E-Mail: 
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Staff E-mail is not a valid format" ControlToValidate="Email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="Staff E-mail address is required." ControlToValidate="Email">*</asp:RequiredFieldValidator></td>
    <td valign="top">
<asp:textbox id="Email" runat="server" cssclass="textbox" MaxLength="100"></asp:textbox></td></tr>
  <tr>
    <td valign="top" width="30%">Active: </td>
    <td 
valign="top">
<asp:checkbox id="Active" runat="server"></asp:checkbox></td></tr>
  <tr>
    <td valign="top" width="30%"></td>
    <td valign="top"></td></tr></table>
<div class="okbutton">
<asp:validationsummary id="ValidationSummary1" runat="server" headertext="The following errors must be corrected:"></asp:validationsummary><br>
<asp:button id="btnSave" runat="server" text="Save"></asp:button></div></ew:collapsablepanel>
